Fixes #31: metadata parser no longer pops inside finally blocks