initial cleanup after fork