Cleans up the full apllication