Added exception handler to tasks:open-db