Add logging of error message when asynchronous task fails in AsyncExecut...

...or. Fixes #265.