Close Source before returning

This fixes #145