Correctly destroy BookmarksManager

This fixes a crash introduced in commit 017724538f
Merge pull request #33 from twied/master

Correctly destroy BookmarksManager