Update GbxRemote.php

first check if socket is open, than set write buffer