Remove try..with block that was not required