Implemented BYE message, both frontend and backend