fixed interrupts by using os instead of gevents sleep