Implementing rebootInstance method.