SerialSocketEmulator: close socket before opening
Close connection between requests
SerialSocketEmulator: Error catching in write() and read()
Master: close port after receiving data
SerialSocketEmulator: logging, error handling, force isOpen() to False