Don't swallow exceptions (try...finally should be considered harmful)

In a try-finally block with no catch block, an exception thrown in the try
block can be swallowed if a second exception happens in the finally block.

In class inheriting from AbstractDatabaseAction a try...finally block is
often used, this patch adds logging catch blocks where those were missing.