Close the stream. This will close the current file and call Listener.onFileAvailable with the last file.