Quick Fix Read/Writing to destroyed socket

This should looked into in depth for the next release