chore(app): add error callback