close statement after executing a sql to ignore OutOfMemory error.