Avoid default abort when error occurs