Close all statements