Properly close statements (hopefully)