Laid off while H1B extension under process

My current H1B validity ends on July 5th. My employment ends on August 9th. Renewal was filed on April 22nd. Am i eligible for 60 day grace period?
Should I file for COS asap or do i have some time?

It depends on what date the employer is going to withdraw the pending H1B application.

Are they withdrawing it?