A very little faster reading/parsing of input.
Remember original exception in ConnectionLostError.
Optimized send_command.
Made typechecking optional.