saving exceptions memory