Added try and catch block for Response#sync