Fix a bug that would break the parser when sending one '\n' to the server
Fix a bug that would not treat the NameError exception properly when a command is not recognized.