add sleep to quit