Ref #3332: Catch disable PI case, clear logs in deployment

http://www.rudder-project.org/redmine/issues/3332