Nesting wren in shed

We have a wren nesting in our shed, it accesses by a badly fitting door. I don’t want to move the nest but I do want to clear and tidy the shed but would like to minimise disruption and any difficulties for the birds. When would be the best rime to do this?