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