As stated above, Willie commits suicide in a final effort to achieve some semblance of success. The money from the life insurance policy is unlikely to be paid out however because the policy does not cover death by suicide.
In the play Willie is concerned that he has been a complete failure, which is true in some ways. He has not managed to achieve a great deal of professional success. However, he and his wife have paid off their house - an achievement which he ignores - and they have raised two healthy, relatively capable children. Willie does not recognize these feats as achievements, comparing his life to the quick and astonishing financial success of his brother.
Suicide is Willie's final failure and also his final attempt at success, again demonstrating his miscomprehension of value.