updated `atexception` to act like the the new `atexit`