added methods for opening and closing serial connection (useful for bluetooth headsets instead of connect/disconnect).