added extra exception handler for resize command