Clean up preferences and webview