Close opened statements