mgstorage-pylib: catch exception thrown by popen

if something goes wrong with popen it fails with a stacktrace and no
errors to the client. With this patch it properly reports the problem
to the client