[profiler] Use 'start_unload' events instead of 'end_unload' events to avoid crashes.