Scotland's Matt Ritchie scored with a left-foot shot to the top corner against Poland but it wasn't enough as their EURO 2016 qualifying campaign came to an end in a 2-2 draw at Hampden.