Deal with exec calls before the JavaFX thread gets created.