Try to fix stalling travis by closing all sockets after tests