added error message to console when compilation fails due to process exiting