"Exclusive access could not be obtained because the database is in use."
The Solution is type the script below and run it (SQL Query) :
Before Restore Attempt
use master alter database DB_NAME set offline with rollback immediate;
use master alter database DB_NAME set online with rollback immediate;