import.php: Added mysqli_close() before most exit() calls. Also fixed a wrong ID reference.