Close your connections kids.

Also allow specifying non-default ports / hosts.