added close_gracefully method to Mojo::IOLoop::Stream