def _exec_command(self, command: str):
        """
        Executes the command and closes the handles
        afterwards.
        """
        stdin, stdout, stderr = self._ssh.exec_command(command)
        # Clearing the buffers
        stdout.read()
        stderr.read()
        stdin.close()
Executes the command and closes the handles
        afterwards.