Catch OSError when execute unknown command