Added error handling to runInteration and runOperation