use AnyEvent->timer for sleep

sleep blocks AnyEvent loop.