Close thumbnail service to avoid memory leaks.