Remove usage of exception.