Is there a way to couple this with a conditional to test whether it has already been closed?