The Delay before close (wait) value of -1
makes it never close.
What you likely want in this situation is a Delay before close value greater than zero, but with the Toggle (32) spawnflag set instead.
That way, the door will open the first time it's triggered, and then close on the next trigger.