Cleanup error handling and ad interactjs