Clean up error handling; add WFModule->handleUncaughtException(Exception $e) delegate method.