sort of finished the overall framework fo ProcessManager but it seems like the TransactionalFileOutputStream is weird to me