Fixes #1, makes sure views are unmapped when closed.

Not the most graceful fix I guess, but it works.
Merge pull request #25 from Lucus16/fix#1

Fixes #1, makes sure views are unmapped when closed.