Don't leave duplicate frame after commiting with magit

Fixes issue #3.