window: Bugfix timestamp display for local commands (was getting the ts of the next line)
Make plugin windows hide rather than being destroyed on close