Doctor walked in on his patient masturbating