Async fix

Fixed an incorrect process status code being passed to clients of the async process, and also changed the way the async tasks "inherit" credentials from their callers.