Opening a LaTeX file without preamble resulted in error because there is no fold at line 1 to be closed. Made the foldclose command silent.
Set auto_pushd option in .zshrc