Correct way to hide console.

Correct way to hide console.