Add handler for USR1 signal that attempts to dump the active tasks and memory logger (if enabled) and exits the applications
Attempt to provide some useful information about internal state when deadlocked.
Signaling a SLURM batch job using
scancel -s USR1 <jobid> works (but not reliably)
See !859 (merged) for a more reliable solution.