Dealing with the risks of investing