Use main process to run frontend.

Running the GUI in a child process gives problems on OSX.
Also, change signal handling since we have less processes.