updated process manager to throw an exception if attempting to access its state when uninitialized