Catch exceptions on plugin disable