Metastable states of ultracold atoms