Fix subtle bugs caused by copy-paste. Leave sqlite db if cyclus crashes.