For #7, catching some errors and showing alert. Not catching all out-of-space errors