Updated method afterStep to place each manifest BufferedWriter in its own try/catch block for calling the close method.