Visitors told to leave as state parks close