implemented detach and unref to enable child process to continue even if parent exits