try except for sending messages