If the bank loan or financing fails, you get to keep your earnest money during the contingency. Moreover, if the bank loan fails after the contingency, there is no possible way to get your money back.