Bug fix: AttributeError: 'lamdbaobject' object has no attribute 'socket'