Improve stacktraces from exceptions in background processes.