Close an if block