add a check if the process is not valid