Execute the below query in SQL management studio to set the AUTO_CLOSE option OFF.
-----------------------------------------
ALTER DATABASE
SET AUTO_CLOSE OFF
----------------------------------------
Note: To set the AUTO_CLOSE option OFF for all new databases, apply the above setting to 'model' database.