Moving logging of input termination, cleaning InputsResource.