Revert "main-loop.c: Handle SIGINT, SIGHUP and SIGTERM synchronously"