Changes made to handle the exceptions

Now if user presses ok without selecting any file.
The plugin dont crash