Register shutdown signal handlers (broken)
Registers signal handlers for SIGINT (CTRL-C) and SIGTERM, so the docker image exits cleanly on docker stop
.
BROKEN, do not use
docker stop
sends SIGTERM, not SIGINT, and for some reason I made the app exit 1 for SIGTERM. Fix incoming...