ensure we process events at least once during sleep
Merge pull request #146 from preo/sleep_fix

ensure sleep and process_events are called at least once during a ghost sleep call