On the distribution of the claim causing ruin