verify sockets by executing a command, always remove locked sockets