diff --git a/lib/phusion_passenger/admin_tools/instance_registry.rb b/lib/phusion_passenger/admin_tools/instance_registry.rb
index <HASH>..<HASH> 100644
--- a/lib/phusion_passenger/admin_tools/instance_registry.rb
+++ b/lib/phusion_passenger/admin_tools/instance_registry.rb
@@ -105,7 +105,7 @@ module PhusionPassenger
         begin
           FileUtils.chmod_R(0700, path) rescue nil
           FileUtils.remove_entry_secure(path)
-        rescue Errno::EPERM, Errno::EACCES => e
+        rescue SystemCallError => e
           puts "    Warning: #{e}"
         end
       end
When cleaning stale instance directories, rescue all system call exceptions