removing error and socket timeout handlers from prototype