Handling command send error once connected

Close socket on send error once connected to PM3