Error added when a VTK file cannot be created

Prevents the main process from crashing and freezing the code
Merge pull request #1 from ViviCoder/master

Error added when a VTK file cannot be created