Fix. method to release mock instance