Bump version to 0.5.0b2.
* Fix window close and minimize button when not hides_on_* not set.
* Fix unregistering window.