Handle not so graceful shutdown