Fixing bye functionality and printing order when exiting chat.