window: Add a log handler for window.c clients

This way we can see what kind of error we get if we get an error.