When we clean up an application due to timeout of placeholders we release asks that have not been allocated. These asks have the termination type set to TIMEOUT.
We do not have to wait for the shim to release these asks as the are not taking resources on nodes or in the queue. By cleaning up when we notify the shim we also make sure that the application is no longer considered for scheduling.
We can only do this for the asks that are outstanding if there are real allocations we must wait for the shim to respond.