log next exceptions for SQLException