Made closeCurrentEntry public, to match putNewEntry
Option to not write the tar eof block when the stream is closed. Default to do so