Why didn't the Spanish finish building the panama canal?

they were interrupted when the US asked them to leave for breaking the Roosevelt Corollary i believe so anyway