Cleaning up some useless resources