add atexit, late exit in .finit1
Postpone writing EXIT_PORT from exit to .fini1.
Merge branch 'master' into auto