Only messaging shutdown if shutting down