Wrapping plots in try-catch statement.