Added max. recursion depth arguments to xt_handle()/_cleanup() to make sure commands that still have to be handled don't get (partially) cleaned up already.