add code coverage and new tests
test properly closing all connections even if some throw IOExceptions when attempting to close the connection