Added a Try catch block on the process message method