This exception catch is doubled (see the same catch in line 28). Should be removed.