made Psych exception handling more generic
made Psych exception handling more generic

[#117937573]
https://www.pivotaltracker.com/story/show/117937573

Signed-off-by: Aditya Mishra <2330a4bdb6997662a3448ce85aa62c8db59b43d5@pivotal.io>

barthy1/bosh,barthy1/bosh,barthy1/bosh,barthy1/bosh