Switch off socket connection.