initial version, monitors a process and optionaly sends an email to the current user