add method to stop a monitoring without to use the waitFor method