fixing snow leopard unespected shutdown