Limit lines of output for pilot in webinterface. Handle no-output properly. Improved cleanup of job process