Added database exception handler during Symfony bootup.

The handles basically silence errors.