Make it possible to get exceptions in async mode.