Handle timeout event