[Python-Dev] Return code when there's a problem at shutdown