We've found some (first that comes to mind is in Bar Harbor) that will give you free transportation back to your dock. Another was in Castine where the owner not only closed the market to give us a ride, but gave us a tour of the town on the way! Doesn't hurt to ask - usually they will be accommodating, at worst they say no.