Handle begin - ctrl+d - new quit