Catch exception in getMachine in case of not founding requested machine