set delegate to nil before disconnectAll