Cannot start server after rebooting PC

Everything is working fine with my server but when I restart my PC, Openfire cannot start again. Message is:

Caused by: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: java.sql.SQLException: The database is already in use by another process: org.hsqldb.persist.NIOLockFile@c69e02e3[file =C:\Program Files (x86)\Openfire\embedded-db\openfire.lck, exists=true, locked=false, valid=false, fl =null]: java.io.FileNotFoundException: C:\Program Files (x86)\Openfire\embedded-db\openfire.lck (Access is denied)

I am using Embedded database. The only fix I found before was re-installing the server, but I can’t do that everytime.

Any ideas?