Added the code for unhandled exceptions to receiver