webapp: more robust USB handling