avoid exiting in the loop of the process when something wrong occurs