add timeout to process monitoring