Schedule the closing of an application