place EV_ERROR check at top in shv_handle()