Register the timeout callback by defult.