Catch select errors in __main__ and ignore them