 
 		let pcId = command.argumentAtIndex(0) as! Int
 		let desc = command.argumentAtIndex(1) as! NSDictionary
-		let pluginRTCPeerConnection = self.pluginRTCPeerConnections[pcId]
+		weak var pluginRTCPeerConnection = self.pluginRTCPeerConnections[pcId]
 
 		if pluginRTCPeerConnection == nil {
 			NSLog("iosrtcPlugin#RTCPeerConnection_setLocalDescription() | ERROR: pluginRTCPeerConnection with pcId=\(pcId) does not exist")

			options = command.argumentAtIndex(1) as? NSDictionary
		}

		let pluginRTCPeerConnection = self.pluginRTCPeerConnections[pcId]

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


		let id = command.argumentAtIndex(0) as! String
		let trackId = command.argumentAtIndex(1) as! String
		weak var pluginMediaStream = self.pluginMediaStreams[id]
		weak var pluginMediaStreamTrack = self.pluginMediaStreamTracks[trackId]

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