Fixed frostos.lua

What you did before was terrible practice (leaving the file handle open and stuff).
Merge pull request #1 from InputUsername/patch-1

:)