Residents were warned to avoid unnecessary travel