Can't stop Openfire 3.10.2 service gracefully on Windows Server 2008 R2

It was alright with 3.9.3 and 3.8.2 as far as i remember. I was able to stop the service quickly after running for a while. But i couldn’t stop it with 3.10.2 after running for ~6 days. Had to kill it. After that it starts and stops quickly. Probably related to that problem which started with 3.10.0, when Openfire Launcher was taking longer to shutdown after you login with Spark into server. That issue seems to be gone in 3.10.2, but the service is still affected by something.