Print a warning when unregistering an unknown end point
Shell console: avoid prompt bug with readline

readline considered the line starting at offset, even if a prompt was
printed using sys.stdout.