He unbolted it and opened and shut it, while trying hard not to make any noise.
However, he went to the length of unbolting it, and opening and shutting it several times; this he did with the utmost precaution against making any noise. 