handle properly idel timeout