Moved error alerting from app to logging