Authentication MysQL Close error