Kubuntu 18.04 wont shutdown as long as the power adapter is plugged in to my laptop. If I disconnect the power adapter it shutdown's properly.
I tried many solution available in forums related to shutdown issues in ubuntu but no luck.
Can someone please suggest me how to fix this.

The last two lines of shutdown process are as follows.

starting power off
reboot: power down