Update Server.php

added unwrap failure detection to trigger a disconnect