Please don't use sleep, use "select(nil, nil, nil, <time>)"

https://github.com/rapid7/metasploit-framework/blob/master/HACKING#L39