Fix some state that stayed around in ui.command_entry after close:
* Clear _textredux to avoid any unwanted behaviour after closing
* Make sure the command_entry is set back to writable (clear read_only).