safeExit should just ignore the coredump flag for the shutdownHaskellAndSignal case. (The process can???t control whether the SIG_DFL action for that signal results in a core dump???the list of such signals is defined by the kernel, e.g. SIG_KERNEL_COREDUMP_MASK in Linux.)