refactor: use is_open instead of platform specific attributes, closes #83
3 files changed