Added shutdown event. This fires on process shutdown, as well as a recompile.