Fixed bug with plugin status on install/uninstall

At 95ac85c6d453fed166994e11a883bdc63a871e7a plugin installation system was broken, and saves status of installation/deinstallation as 'success' in all cases. I fixed it.

Saving plugin status as 'installed'/'uninstalled' only if corresponding action finished properly
Also added messages for failed plugin installation.