improve error reporting and add restarting of command interpreter and event processor