saveVTK: Close the file even if error is set upon completion. Note that in some places the function still returns without proper clean up but this won't be fixed until the rewrite to avoid more mess in the code.