Closing opened files which was causing grader to not delete them