Added exception handling for elophant api