Adding support for sigterm to support graceful shutdown in Docker