catch all error in network thread