function close(channelState) {
  channelState.closed = true;
  channelState.db.close();
}
there is a bug in iOS where the msgObj can be undefined sometimes
so we filter them out
@link https://github.com/pubkey/broadcast-channel/issues/19