Auto pump protection for electric shortage