fixed bug where Mojo::UserAgent would keep too many connections alive (closes #644, closes #645)