additional errorhandling on socket shutdown