Clearing up sequence of action on process termination.