Add exception handle in message server