.gitignore: add *.swp, *.pyc
Use .name instead of deprecated .portstr
SerialSocketEmulator: set is_open to False when closing