Close the pipe to our expect process and allow for a debug level to be set