And you can't get access to the database because database might be in use by the single user and is in the single user mode.
There is a work around.
Run This command
SP_Who will show you processes attached to your database. See DBNAME Column and find your database in it. Then note down SPID. For example 72 is the SPID of the process you want to kill.
Then run this command to kill the process.
Kill command will kill the process. And then you will be able to run Set multi user mode command again and it should work.