Add exception handling around responder function, to avoid timeout on the client when the exception is thrown before the task is returned.