remove socket on disconnect
added license