private static void closeStatement(Statement stmt) {
		if( stmt != null ) {
			try {
				if( !stmt.isClosed() ) {
					stmt.close();
				}
			} catch (SQLException e) {
				logger.error("Error closing the statement.", e);
			}
		}
	}