Close handle properly in captcha.php

handle wasn't being closed