Added close function to ChunkedFile to properly close the filehandle when served.

The file in ChunkedFile was never closed. Can cause a locked file (in development mode)