Robust, automatic resource management with an easy-to-use interface