dont try closing connections that dont exist