Here is something that you need, at least partially.
Exit actions You can set certain actions to occur each time you close the browser. Confirm exit dialog You can have Opera display a dialog to confirm that you want to exit, to prevent you from accidentally closing the application. To set this, go to Settings > Preferences > Advanced > Browsing and check "Confirm exit". Clear cache To clear your cache every time you exit the browser, go to Settings > Preferences > Advanced > History and in the Disk cache section, check "Empty on exit". If you would like a sound associated with exiting the browser, go to Settings > Preferences > Advanced > Notifications and select "Opera Exit" in the section for enabling program sounds. To clear new cookies when you exit the browser, go to Settings > Preferences > Advanced > Cookies and check "Delete new cookies when exiting Opera". Cookies created during the session will be deleted, while older cookies will be preserved. Delete stored documents To clear any documents stored during your session, especially if you are using a public computer, select Settings > Preferences > Advanced > History and check "Empty on exit".
UPD: I Saw that the docks once old, is quite that there may not be.