fixed bug in Mojo::UserAgent where connections would sometimes not get closed correctly