The method (slot) _handle_kernel_info_reply does not exist and
'kernel_info_reply' is also handled by the code below, which makes
these two lines redundant.
It is necessary to flush stdout and stderr on every event since we
are executing the code asynchronously.