Don't call atexit() registered functions on fork parent termination.
Restore connection check.
Exit on quit/exit, even if other stuff comes after.