<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi Denis,<br><br></div><div><br>On Apr 18, 2016, at 1:07 AM, Denis Kudriashov &lt;<a href="mailto:dionisiydk@gmail.com">dionisiydk@gmail.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra">Hi</div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-18 8:40 GMT+02:00 marcel.taeumel <span dir="ltr">&lt;<a href="mailto:Marcel.Taeumel@hpi.de" target="_blank">Marcel.Taeumel@hpi.de</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":6fj" class="a3s" style="overflow:hidden">Hi there,<br>
<br>
there are three different scenarios for shutdown:<br>
<br>
1. Save and resume<br>
2. Save and quit<br>
3. Quit only<br>
<br>
For general clean-up routines, 1 and 2 should clean-up, while 3 does not<br>
have to. So, one variable might be sufficient. :-)<br>
<br>
Any other ways of using shutdown?<br></div></blockquote></div><br>But good practice is to close DB connections when app is closing for example</div></div></div></blockquote><br><div>Agreed. Bug do you agree that #save is not a time to close, whereas #saveAndQuit and #quit are?</div></body></html>