The major hurricane threatened to unleash destructive winds, flash floods and a dangerous storm surge