(MainWindow.AddLayer): Move OpenShapefile into try block. AddLayer doesn't throw any exceptions anymore. (MainWindow.AddRasterLayer): Move constructor of RasterLayer into try block.