default close code to 1005, set reason to sock error
fix some copas yield stuff
fix broadcast test