you need close the file after using. maybe in `finally {}`.