Fix hard shutdown.