Start to implement Quit handling.