Don't closedir unless dir
Enable sigsegvHandler by default.