What will mali gpu driver do after sending a soft stop/hard stop to a gpu job?

A normal gpu job's execution finishes with sending an interrupt to inform cpu, and mali gpu driver will handle the interrupt. If the mali gpu driver initiatively send a soft stop/hard stop to the running gpu job, will the mali gpu driver do anything to handle the termination of the gpu job?

Also, what's the differences between `kbase_gpu_remove_atom` and `kbase_gpu_stop_atom`? how does mali gpu driver handle these actions?