def cmd_kill():
    """Kills all active connections to the specified database(s)."""
    db = connect()
    count = terminate(db, args.databases)
    if count == 0:
        log.error("No connections could be killed")
        # Return status 1, like killall
        sys.exit(1)