setup child_pre_exit properly for gevent