close pipe and config file descriptors when back to on-demand mode