add resource cleanup codes
Merge branch 'master' of https://github.com/bearkode/PrisonBreak