Close sql statement resource to fix memory leak.