Can't add new command when connection is in closed state