def check_con(con):
    """Raise a connection error if this connection is down.
    """
    if not con:
        return False
    event = con.api('status')
    return bool(con.connected()) and bool(event)
