Finish quit handler code