I'm going off memory, but I thought the library books led them to John Doe's apartment, something he was not planning for, and required him to change his plans somewhat. He did want to be caught, but not that soon, before he had finished his work, and required a hurried escape.