I'm thinking of having the application shut down after the restore process.

So then I should just redirect the connection to another user-created database instead of the MASTER database?