updated `atexception` to mimic the new `atexit`