Over voltage, over current and short circuit protection