socket ends on timeout