Awww... well, just remain positive. Why would he lose interest because you needed to get a textbook from a friend? Though I know how it feels when you leave a conversation with saying anything it feels like you just blew people off, but possibly they may have noticed you were in a hurry and just ignored the fact you had to leave. Try not to let this get you down, he probably is still interested in you.