Add some exceptions for console mode.