Added handling of non-monitored processes.