this is by design to prevent such problems as when using human tasks (which can be active meaning not completed for very long time) it is highly recommended to use persistence on the engine side as well to guarantee the state (and its corresponding identifiers) is stored in reliable data store such as db.
HTH