Ensure all connections are closed on SIGTERM and SIGINT