It is morally neutral, as nobody else is harmed. However, attempts at suicide are a sign that such person is suffering from some mental disorder and are therefore not capable of making rational choices. Government has the power to prevent such people from killing themselves.
If the person has surviving family or close friends, those persons are frequently terrifically harmed.