def METHOD_NAME(alias):
    try:
        connection = connections[alias]
        connection.close()
        del connections.databases[alias]
    except (ConnectionDoesNotExist, KeyError):
        # Already cleaned up, nothing to do here!
        pass