added Agent#handle_emits_error and Agent#handle_emit_error