Add logging of error message when asynchronous task fails in AsyncExecutor. Fixes #265.