Somtimes i get an error after starting pimatic. At this point pimatic is nearly started, but tradfri kills pimatic
22:08:14.491 [pimatic] error: An uncaught exception occurred: TypeError: this._sock.close is not a function
22:08:14.491 [pimatic] error:> at Agent._init.dtlsClient.connect.bigSocket.on.Agent._doClose (/home/pi/pimatic-app/node_modules/pimatic-tradfri/node_modules/tradfri-coapdtls/lib/agent.js:182:14)
22:08:14.491 [pimatic] error:> at Agent.cleanUp [as _cleanUp] (/home/pi/pimatic-app/node_modules/pimatic-tradfri/node_modules/tradfri-coapdtls/lib/agent.js:176:8)
22:08:14.491 [pimatic] error:> at Agent._init.dtlsClient.connect.bigSocket.on.Agent.request.Agent.abort (/home/pi/pimatic-app/node_modules/pimatic-tradfri/node_modules/tradfri-coapdtls/lib/agent.js:451:8)
22:08:14.491 [pimatic] error:> at RetrySend.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic-tradfri/node_modules/tradfri-coapdtls/lib/agent.js:411:10)
22:08:14.491 [pimatic] error:> at emitOne (events.js:77:13)
22:08:14.491 [pimatic] error:> at RetrySend.emit (events.js:169:7)
22:08:14.491 [pimatic] error:> at null.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic-tradfri/node_modules/tradfri-coapdtls/lib/retry_send.js:68:12)
22:08:14.491 [pimatic] error:> at Timer.listOnTimeout (timers.js:92:15)
22:08:14.491 [pimatic] error:> This is most probably a bug in pimatic or in a module, please report it!
22:08:14.498 [pimatic] info: exiting…