throw Exception on failure of creating DAG