Fix window closing

Add stream operator for boost uuid
Remember window position