try catch in the read message