added on process exit callback