hide socket write warnings