Properly close Source, thanks @slandelle