Fix error handling with IO::Async implementation.

Release 0.19