fixes #60 (wxPyphant hangs for command line parameter with a wrong file extension)

catches the IOError, logs an error message and shuts down the application