Can you explain why these automated tests are sending your program SIGQUIT in the first place, please? Normally, automated requests for a process to shut down cleanly as soon as possible should use SIGTERM, not SIGQUIT.