Added acc_exit with gcc's destructor attribute to enforce call to acc_profiling_exit (write the DB)