Log exception on shutdown.
[Sone.git] / src / main / java / net / pterodactylus / sone / main / SonePlugin.java
index 1f2622c..5199af6 100644 (file)
@@ -224,6 +224,8 @@ public class SonePlugin implements FredPlugin, FredPluginL10n, FredPluginBaseL10
 
                        /* stop the identity manager. */
                        identityManager.stop();
+               } catch (Throwable t1) {
+                       logger.log(Level.SEVERE, "Error while shutting down!", t1);
                } finally {
                        /* shutdown logger. */
                        Logging.shutdown();