Fix closing console.