add atexit, late exit in .finit1
Postpone writing EXIT_PORT from exit to .fini1.