WorkspaceFailed handling for non web servers

When WorkspaceFailed is raised and the code does not run on a web
server, this throws an exception which is handled by the invoker, for
example, the Samples project.