make main process clear its pid before exit.

Suppresses an extraneous "main pid has disappeared" message
on successful exit.