Basically, BindToClose() runs before the server shuts down, so. Yes! It will run when the last player leaves.
No, nothing is deleted when the servers about to close. It’s only when the server does close. It’s like this script below you can use to optimize servers uptime, so when people leave its up for an extra minute before shutting down.