Make intermediate process to handle any errors in main process