The 5 minutes is provided as a courtesy to you to give you an opportunity to save your work and close applications. Windows itself has no need for the 5 minutes and would otherwise restart immediately. If the option to restart immediately wasn't safe it would not be provided.
Just be sure to save your work and close applications first.