Bugfix, don't panic if shutdown is requested multiple times