The deal fell through just hours before the transfer window closed on Monday.