Update tasks.onboard_user to better handle errors