Implement chat parting as outlined in #443