Catch exceptions from ExecuteAsync.

This PR adds Catch to InvokeCommand to handle exceptions that would otherwise end up in the unhandled exception handler.