Added rollback statement when closing uncommited connection