Solves the issue of crashing on closing
Merge pull request #177 from CharuChopra84/master

Solves the issue of crashing on closing