TERM LOAN AND GUARANTY AGREEMENT dated as of November 8, 2017 by and among