Better method of determining a console handle.