removed anonymous namespace code used only for testing
Added a try/catch to running filer, but it does not need to exit