The SqlStatement is closed in finally block to avoid errors