[Preview] Fix leaked file descriptor during writing
Merge pull request #53 from kylef/open_fd

[Preview] Fix leaked file descriptor during writing