Add simple catch to avoid segfault if no file given