check fileurl path is None first, add sleep 1s between restart