He finally made his way to Spain , where he married and settled in a small town on the Mediterranean coast near Barcelona working as a dishwasher , a campground custodian , bellhop and garbage collector , while he wrote .