Close Source before returning

This fixes #145
Merge branch 'fix-145'