Leaking resources: command pattern to the rescue · HackerTrans