fixed closing of tcp sockets after ws closing
close button is always active