Open file with set_timeout