Deduction for advance payment and appraisal cost for failed refinancing

Can the advance payment (and appraisal cost) for a failed refinancing, for primary home as well as a rental property, be deducted? If so, where (for primary home and for rental property)? In my case, the lender could not close until three months after the applications and by then the interest rates had increased to make the refinancing unattractive.