Hook fclose function and in case of the closed file is stderror and
disable igprof_debug.

Issue: https://github.com/ktf/igprof/issues/19