Throw unparseable exception if error reading PNML, fixes #6

* Catch this and then display error message to user
Do not error if user presses cmd-w too many times

* Move removal of petri net into the if containing the number of open
  tabs