fix quit logging