Fixes socket closing. Also sets _nativeSocke to public for debugging
purposes (for now!)