Improves signal handling for exiting processes.