Fix file descriptors not getting closed properly

Refs #4865
Update ITL commands.

Refs #4865