- Adding debug exception handling