checks that con is open for commit