IOPort.__exit__() now calls close() as well. Also removed a debugging print.