added error handling at the client side for any remote/nw failure