always close jdbc Statement/ResultSet in finally

I'm use logback DBAppender with pooled Oracle connection.
When logger failed to insert rows (by some reason): cursor was not closed.
And after some time, all calls to pooled conneciton return error: `ORA-01000: maximum open cursors exceeded`