Added a restart function which kills the current connection, destroys the command queue, and starts fresh