Fixed error on processExit