More nicer error handling

Nicer error handling when executing not existing command, or don't have permissions.
In fact, previous handling not works at all.