Sandbox Api should catch uncaught exceptions when dispatching requests

Currently, if uncaught exceptions occur in a resource's api method, no reply will be sent to the sandbox.

When dispatching requests, we should catch uncaught exceptions, and return a reply to the sandbox with the caught exception's message.