It's rather suggested to restart before flashing. Before it restarts, driver sets up some command that tells processes and files that are currently working to not work and remove themself while booting up.
But if you don't want to,...
But if you don't want to,...