fixed error handling bugs in Mojo::IOLoop::Stream