Fix #47, #48: Closeable implementation of SerialPort