You don't save before stealing / trespassing? There should be a couple of auto saves before that point, at least.

Can you sneak close enough to close the warehouse door?

Can you go around through the docks, and up to the rest of town that way?