Update logging levels and graceful shutdown using signals