chore(createExec): throw error as event instead of exception