Display space if newline is in panic string.
Added process status field and improved robustness of process cleanup.
Don't start new threads if the process is ending.
Take lock before checking status of output buffer.
Blocked threads are abortable. Also remove thread from process when it's aborted.