Added timeout of 5 seconds, in case process cannot quit.