When clicking on messages, open logbook with window manager

If showing the logbook directly, the logbook manager will crash when
attempting to close a window it never has seen.

Fixes #2082