webapp elegant shutdown on SIGHUP