Fix memory leaks on db_error by removing hard exit.

Part of bug fix: http://sourceforge.net/p/moneymanagerex/bugs/321/