use separate thread to monitor process for helix-agent