Close, but no cigar
Even a near miss is still a miss. The saying probably originated with carnival contests in which a cigar was the prize for hitting a target.
The New Dictionary of Cultural Literacy, Third Edition Copyright © 2005 by Houghton Mifflin Harcourt Publishing Company. Published by Houghton Mifflin Harcourt Publishing Company. All rights reserved.