Fixed a problem where sessions were not being properly closed. Additionally, the cas manager now only looks for things to do every minute.