Cleanup of AbstractActivity.