more error checking on take_console_control