Windows: Restore console mode on set mode failure
Windows: Restore console mode on set mode failure

SetConsoleMode() on input handles appears to remember invalid bits that
were set, causing problems for other programs (such as xcopy.exe) trying
to set the console mode after docker.exe has exited. Always restore
the input console mode on set failure.

Signed-off-by: John Starks <4f08c47f7080d055a9777fa88698f74c617e54d1@microsoft.com>

moby/term