Gracefully shutdown on all signals with additional logging
Allow graceful server to be injected