use xpcall in net ev callback