Add input queue to backend, fixing process leak problem.