finish the console