bugs fixed (libpfm sensor) with the file descriptors closing