Added timer to exit child process if time > 10 seconds