Wrapped battery charge prompt code in try-except block, so unsupported machines don't get constant error messages