catch ws,tcp exception