fixed a few error reporting bugs in Mojo::IOLoop::Client and Mojo::IOLoop::Server (closes #503)