Wordpress error div on admin pages when API is not online

Plugin activation fails if API is offline