Fix bug with exit on idle time. (GH-32)