Add timeout to open