Removed duplicate on close event for the child process