Fixed an issue with proc crashing if error and done were sent.