Best thing to do is to stop using it ASAP.
Try to work out mentally, what it is that is keeping you from sleeping.
Try medetation, yoga, exercise, cutting out caffiene, stopping any other drugs, using earplugs, exercising harder/longer, eating less sugary foods. You can find a natural solution. Stay away from Ambian.