timeout checking and process completion