opened connections should be closed
catch httplib errors
Add pytest as dependency
Add a simple test