Vm figuresout that the box can only suck in one direction at a time, you can get close enough the box to put the lid on it. Alternative you can pick it up and move it to a side with no living creature insight and the gargoyle can pull himself out. (Auto-success)


Ofcourse this is if you want to let him out. This is a common item used to trap powerful enetities, though it has it's flaws obviously.