Worker: Improved file IO.

- Using auto-closing output stream.
- Deleting epiphany files after query runs.
- Using larger buffer.