add timeout in clean function 50ms