How about using an old toaster? The ones that have more than one toast option usually are electronic and use a magnetic circuit to keep the bread down while toasting. When the toasting time is up, the power is cut and the magnetic circuit is broken, ejecting the bread. The ejection mechanism is spring loaded so if you put it upside down it can close the trap even quicker.
9140403981