Fix async workflow and handle exceptions