Now the scheduleNextClose function schedules as many tabs as required.

This is to prevent problems that occur where the active tab may be closed if more than minTabs tabs are locked/whitelisted.
Now handles rescheduling tabs when minTabs count changes.