 			options = command.argumentAtIndex(1) as? NSDictionary
 		}
 
-		let pluginRTCPeerConnection = self.pluginRTCPeerConnections[pcId]
+		weak var pluginRTCPeerConnection = self.pluginRTCPeerConnections[pcId]
 
 		if pluginRTCPeerConnection == nil {
 			NSLog("iosrtcPlugin#RTCPeerConnection_createOffer() | ERROR: pluginRTCPeerConnection with pcId=\(pcId) does not exist")


		let id = command.argumentAtIndex(0) as! String
		let value = command.argumentAtIndex(1) as! Bool
		let pluginMediaStreamTrack = self.pluginMediaStreamTracks[id]

		if pluginMediaStreamTrack == nil {
			NSLog("iosrtcPlugin#MediaStreamTrack_setEnabled() | ERROR: pluginMediaStreamTrack with id=\(id) does not exist")


		let pcId = command.argumentAtIndex(0) as! Int
		let desc = command.argumentAtIndex(1) as! NSDictionary
		weak var pluginRTCPeerConnection = self.pluginRTCPeerConnections[pcId]

		if pluginRTCPeerConnection == nil {
			NSLog("iosrtcPlugin#RTCPeerConnection_setLocalDescription() | ERROR: pluginRTCPeerConnection with pcId=\(pcId) does not exist")
