Merge all other contributions

New features
Fix Windows bugs
Good catch; though this would be automatically closed via GC (not tha we should rely on it).

However, this should be closed in an ensure statement. I"ll fix this in the merge process