Added sleep() cleanup