Added exception catching at message sending