Fixed #5597 and added abort() support to stdcfg.