ensure clean termination
explicitely defer encryption
invoke mainwindow.quit only from parent pid

because the fork happens after the registration of the signal handler,
all children processes were inheriting the handler (and being passed a
reference to the mainwindow object, ugh...)