Use ostream::good() instead of ostream::is_open(). This might fix
some issues I'm seeing where we don't write "**END" but I'm not sure.
Fix missing return value for intercepted clCreateSampler()
Note directory used for logging in debug output.