fixed issue when the WPF is not opened and attempt to write to pipe line