Add verifications for remove and chmod socket methods