Code to handle masspay exceptions