Update to handle errors while spawning the process