Added exception handler to .w plugin