First, write a decent novel that you can be moderately proud of and which some people will buy. Next, write another book, but keep it as an unedited manuscript, and don’t even tell your editor about it. Then commit suicide, but make it look like it happened because of “unexplained circumstances”. Eventually your editor will find the unedited manuscript and it will be an instant success because your life would have been dissected for clues as to why you did what you did and your first novel will be dissected to hint at your suicide. Either way, you win, and your name will become immortal.