fixed issue with random custom exit