Added error logging to activities