You do not need to use /close at all. Just use the ^ and haltdef.
on ^*:OPEN:?: { msg $nick No PM On $me haltdef }