clean event context after child is forked.