A few memory leaks were plugged
Abort if database can't be opened