catch error when restart reply