fix crash when shutting down while no build was started