Cleaned up code aliite bit and moved closing of socket from kill() to finally
Added function that removes devices when setting new GUID List in DeviceCollection.