set gen task status to failure when exceptions are raised
remove modifications made for testing