catch exception in reciece callback