Shouldn't we only catch certain classes of exceptions here?