Updated serial port opening/closing.
This solves some issues of "port already open" with python 2.7 on win8