Clean up some global values when closing a project...