Exception might not just be from PDOException, so instead catch all.

Signed-off-by: crynobone <crynobone@gmail.com>