public void closeConection(Connection conn) {
		try {
			if (conn != null && !conn.isClosed()) {
				conn.close();
				conn = null;
			}
		} catch (Exception e) {
			log.log(Level.WARNING,"The following error occurred trying to close the connection: " + e.getMessage());
		}
	}