Cleanup the global state message handling