Factory could close due to inactivity with slow backend subprocess open

In case the subprocess open takes several seconds and the inactivity
timeout was reached before the subprocess open was completely done,
the factory could close itself due to inactivity. Keeping the factory
alive since the invocation of the subprocess fixes this.