how can i timeout an inactive application