exit after fork