Added child process in case that the main process ends