Added protection for the sleep call in stop(), added _init_fh() to remove duplicate code, and some other minor changes