catch resource exception while getting DB last insert id
handle PDO exceptions in formatters which uses PDOStatement as traversable