Free all memory in exec
Clean up called processes after finished in exec