plugins: fix exception handler