Use promises to make import members kue correct.
Cleanup.
Use promises to correctly manage session jobs.