daemon sleep before terminating