Close modal spinner only at the very end