[manager.js] error handling